import React, {Component} from 'react';
class Detail extends Component {
  render() {
    // 接受路由传递的params参数
    const { location:{ state: { id,title,content } } } = this.props;
    return (
      <div>
        <ul>
          <li>ID: { id } </li>
          <li>title:  { title } </li>
          <li>content: { content } </li>
        </ul>
      </div>
    );
  }
}

export default Detail;